package pandabay2.service;

import java.util.ArrayList;
import java.util.List;

public class ProductSearch {
	
	private String searchString;
	
	public List searchProducts(String searchString) {
		List searchResults = new ArrayList();
		// hier kommen noch richtige Suchmethoden rein
		if(searchString.equalsIgnoreCase("panda")) {
			searchResults.add("brown Panda");
			searchResults.add("white Panda");
		}
		else {
			searchResults.add("No results for '" + searchString + "'. Try searching for 'panda'!");
		}
		return(searchResults);
	}
	
	public String getSearchString() {
		return searchString;
	}

	public void setSearchString(String searchString) {
		this.searchString = searchString;
	}
}